/*
 * @Author: Bennent_G
 * @Date: 2024-12-23 16:14:13
 * @LastEditTime: 2025-01-17 11:18:49
 * @Description:
 */
import http from '@/utils/http';
import type { ApiResponse } from '@/apis/type';

// 获取角色权限
export const fetchPermissionByRole = <T>(): Promise<ApiResponse<T>> => {
	return http({
		url: '/api/user/permission',
		method: 'GET',
	});
};
export const fetchPermissionByRoleMock = <T>(): Promise<ApiResponse<T>> => {
	return http({
		url: '/api/user/permission',
		method: 'GET',
	});
};
